<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>$Title$</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
    <link rel="stylesheet" href="../css/aboveTool.css" type="text/css" media="screen"/>
    <script type="text/javascript" src="../js/jquery-3.6.0.min.js"></script>
</head>
<body>
    <header th:fragment="header">
            <div id="Header">

                <div id="Logo">
                    <a href="/catalog/viewMain"><img src="../images/logo-topbar.gif"/></a>
                </div>
            </div>

            <div id="Menu">
                <div id="MenuContent">
                    <a th:href="@{/cart/viewCart}"><img align="middle" name="img_cart" src="../images/cart.gif"/></a>
                    <img align="middle" src="../images/separator.gif"/>

                    <a th:if="(${session.account} eq null)" th:href="@{/account/signonForm}">
                        Sign In
                    </a>
                    <a th:if="(${session.account} ne null)">
                        <a th:if="(!${session.authenticated})" th:href="@{/account/signonForm}">
                            Sign In
                        </a>
                    </a>
                    <a th:if="(${session.account} ne null)">
                        <a th:if="(${session.authenticated})" th:href="@{/account/signoff}">
                            Sign Out
                            <img align="middle" src="../images/separator.gif"/>
                            <a th:href="@{/account/editAccountForm}">My Account</a>
                        </a>
                    </a>
                    <img align="middle" src="../images/separator.gif"/>
                    <a href="../help.html">?</a>
                </div>
            </div>

            <div id="Search">
                <div id="SearchContent" class="nav">
                    <form action="/catalog/search" method="post" id="groupOfSearch">
                        <input type="text" name="keyword" size="14" id="keyword"/>
                        <input type="submit" name="searchProducts" value="Search"/>

                        <div class="autoComplete"></div>
                    </form>
                </div>
            </div>

            <div id="QuickLinks">
                <a href="/catalog/viewCategory?categoryId=FISH"><img src="../images/sm_fish.gif"/></a>
                <img src="../images/separator.gif"/>
                <a href="/catalog/viewCategory?categoryId=DOGS"><img src="../images/sm_dogs.gif"/></a>
                <img src="../images/separator.gif"/>
                <a href="/catalog/viewCategory?categoryId=REPTILES"><img src="../images/sm_reptiles.gif"/></a>
                <img src="../images/separator.gif"/>
                <a href="/catalog/viewCategory?categoryId=CATS"><img src="../images/sm_cats.gif"/></a>
                <img src="../images/separator.gif"/>
                <a href="/catalog/viewCategory?categoryId=BIRDS"><img src="../images/sm_birds.gif"/></a>
            </div>

        <script type="text/javascript" src="../js/autoComplete.js"></script>
    </header>
</body>
</html>